// @import './variables.scss';
@import './mixin.scss';

html, body {
  margin: 0px;
  padding: 0px;
}
body .app {
  color: #333333;
  font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
  background-color: $background-color;
}
.primaryBG {
  background-color: $primary-color!important;
}
.primaryColor {
  color: $primary-color!important;
}
.warningColor {
  color: #ee0a24!important;
}

.grayColor {
  color: gray
}

ul li {
  list-style: none;
}
.right {
  text-align: right;
}
.left {
  text-align: left;
}
.center {
  text-align: center;
}
.m-t-10 {
  margin-top: 10px;
}
.m-t-20 {
  margin-top: 20px;
}
.el-link.el-link--default:after, .el-link.el-link--primary.is-underline:hover:after, .el-link.el-link--primary:after {
  border-color: $primary-color;
}

.main-body {
  background-color: #fff;
  box-shadow: 0px 3px 15px 1px rgba(198,207,228,0.5);
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
  // 查询区
  &-search {
    position: relative;
    // min-height: 80px;
    display: flex;
    align-items: center;
    width: calc(100% - 10px);
    box-sizing: border-box;
    // margin-top: 10px;
  	background: $main-body-background;
  	border-radius: 4px;
    padding: 0px 20px;
    padding-top: 20px;
    // vertical-align: middle;
    line-height: 1;
    text-align: left;
    .el-form {
      width: 100%;
      .el-form-item {
        margin-bottom: 0px;
      }
    }
  }
  // 主表区
  &-table {
    width: calc(100% - 10px);
    margin-top: 10px;
    height: 100%;
    // padding: 30px 50px;
  	background: $main-body-background;
  	border-radius: 4px;
  	font-size: 14px;
  	position: relative;
  	transition: all .2s ease-in-out;
    &-page {
      text-align: right;
      margin-bottom: 20px;
      margin-right: 20px;
    }
  }
}
// .el-picker-panel {
//   z-index: 10002!important;
// }
// .w-e-text-container {
//   z-index: 100!important;
// }
// .w-e-menu {
//   z-index: 99!important;
// }

.canclick {
  cursor: pointer;
  transition: transform 0.3s;
  &:hover {
    color: $primary-color;
    transform: scale(1.2);
  }
}

/* 改变主题色变量 */
$--color-primary: $primary-color;

/* 改变 icon 字体路径变量，必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts';

@import "~element-ui/packages/theme-chalk/src/index";

.el-dialog__footer {
  padding: 15px;
  // background-color: #f1f2f3;
  border-top: 1px solid #eee;
}
.el-dialog__header {
  border-bottom: 1px solid #eee;
  background-color: #f1f2f3;
  .el-dialog__title {
   font-size: 20px;
  }
  i {
    font-size: 20px;
  }
}
@media only screen and (max-width: 640px) {
  .mydialog {
    width: calc(100% - 10px) !important;
    .formlayout {
      padding: 10px 20px!important;
    }
  }
}

.el-menu {
  background-color: transparent;
}
.el-submenu, .el-menu-item {
  border-radius: $menus-border-radius;
  overflow: hidden;
}

.el-menu-item, .el-submenu__title {
  color: $menus-txt-color;
  i {
    color: $menus-txt-color;
  }
}
.el-menu-item.is-active, .el-menu-item:focus {
  background-color: $menus-active2-color;
  color: $menus-active-txt-color;
}
.el-submenu__title:hover, .el-menu-item:hover {
  background-color:  $menus-active-color;
  color: $menus-active2-txt-color;
  i {
    color: $menus-active2-txt-color;
  }
}
.el-breadcrumb__item:last-child .el-breadcrumb__inner, .el-breadcrumb__inner, .el-breadcrumb__separator{
  color: #333;
}

.el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell{
  border-bottom: none;
}


.el-table {
  .el-table__header {
    .el-table__cell {
      color: $--color-primary;
    }
  }
}


.el-main {
  padding: 0px;
}
.el-table__fixed::before, .el-table__fixed-right::before,
.el-table::before {
  height: 0px;
}
.main-body-search {

  .el-input-group__append button.el-button {
    background-color: $--color-primary;
    border: 1px solid  $--color-primary;
    color: #fff;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    &:hover {
      background-color: rgba($color: $--color-primary, $alpha: 0.8);
      border: 1px solid  rgba($color: $--color-primary, $alpha: 0.8);
    }
  }
  .el-input-group {
    box-shadow: 0px 3px 10px 1px rgba(198,207,228,0.5);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border: 1px solid #f1f2f3;
    .el-input__inner {
      border: none;
    }
    .el-input__prefix {
      width: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
    }
    &.el-input--prefix .el-input__inner {
      padding-left: 40px;
  }
  }
}
.table-shadow {
  position: absolute;
  top: 45px; /* 根据表头高度调整 */
  left: 0;
  right: 0;
  height: 5px; /* 阴影高度 */
  background: linear-gradient(to bottom, rgba(198,207,228,0.5), rgba(255,255,255,0.5)); /* 只在底部添加阴影 */
  z-index: 20;
}

.liststyle2 {
  color:  #333!important;
  background-color:  #F9FAFD!important;
  height: 55px;
  th.el-table__cell {
    color:  #333!important;
    background-color:  #F9FAFD !important;
  }
}

.popover-label {
  font-size: 18px;
  line-height: 50px;
}
.el-drawer__header {
  text-align: left;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 15px;
}

.ldy-header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  padding-left: 10px;
  border: 1px solid #e1e2e3;
  background-color: #f1f2f3;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom: none;
  padding: 8px 20px;
}
.ldy-body-border {
  border: 1px solid #e1e2e3;
  margin-bottom: 20px;
  padding: 20px;
  box-sizing: border-box;
  // box-shadow: 0px 3px 5px 1px rgba(198,207,228,0.5);
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

.link {
  cursor: pointer;
  &:hover {
    color: #0082F1;
  }
}

.vxe-table--header {
  .vxe-header--column {
    background-color: #fff;
    color: #0a29f0;
    .vxe-resizable.is--line:before {
      visibility: hidden;
    }
  }
}
.vxe-table--render-default.border--default .vxe-body--column, .vxe-table--render-default.border--default .vxe-footer--column, .vxe-table--render-default.border--default .vxe-header--column, .vxe-table--render-default.border--inner .vxe-body--column, .vxe-table--render-default.border--inner .vxe-footer--column, .vxe-table--render-default.border--inner .vxe-header--column{
  background-image: none !important;
}
.vxe-table .vxe-table--header-wrapper .vxe-table--header-border-line {
  // height: 2px!important;
  border: none!important;
  // background: linear-gradient(to bottom, rgba(198,207,228,0.5), rgba(255,255,255,0.5))!important; /* 只在底部添加阴影 */
}
.vxe-table--border-line {
  border: none !important;
}
.vxe-toolbar {
  padding: 20px!important;
  padding-bottom: 0px!important;
  .main-body-search {
    margin: 0px;
    padding: 0px;
  }  
}
.vxe-table-custom-wrapper.is--active {
  z-index: 99;
}
.theme--primary {
  color:  $primary-color !important;
}
.vxe-table-custom--checkbox-option.is--checked, .vxe-table-custom--checkbox-option.is--checked .vxe-checkbox--icon, .vxe-table-custom--checkbox-option.is--indeterminate, .vxe-table-custom--checkbox-option.is--indeterminate .vxe-checkbox--icon,
.vxe-table--render-default .vxe-cell--checkbox.is--checked, .vxe-table--render-default .vxe-cell--checkbox.is--checked .vxe-checkbox--icon, .vxe-table--render-default .vxe-cell--checkbox.is--indeterminate, .vxe-table--render-default .vxe-cell--checkbox.is--indeterminate .vxe-checkbox--icon{
  color:$primary-color !important;
}
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
  font-size: 1.1em;
}
.vxe-table--render-default .vxe-body--column.col--ellipsis, .vxe-table--render-default .vxe-footer--column.col--ellipsis, .vxe-table--render-default .vxe-header--column.col--ellipsis, .vxe-table--render-default.vxe-editable .vxe-body--column {
  height: 60px !important;
  // padding: 10px 0 !important;
}

.myTable {
  background-color: #f1f2f3 !important;
  th.el-table__cell {
    background-color: #f1f2f3 !important;
    color: #333 !important;
  }
}